package com.learn.base;

import java.util.Arrays;

public class ArrayDemo {
    public static void main(String[] args) {

    }

    public void oneFloor() {
        int a[] = new int[4];
        a[0] = 1;
        a[1] = 2;
        a[2] = 3;
        a[3] = 4;
        System.out.println(Arrays.toString(a));

        int b[] = a;
        b[0] = 10;
        System.out.println(Arrays.toString(b));
        System.out.println(Arrays.toString(a));
    }

    public void twoFloor() {
        int a[][] = new int[3][4];

    }
}
